]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/scroll-view-fade: Adapt to paint_target() API changes
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 5 Jul 2020 20:46:50 +0000 (17:46 -0300)
committerMarge Bot <marge-bot@gnome.org>
Tue, 15 Dec 2020 15:38:43 +0000 (15:38 +0000)
It now receives a ClutterPaintNode to paint on. Fortunately,
StScrollViewFade doesn't do any drawing itself, so no changes
are needed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1350>

src/st/st-scroll-view-fade.c

index 30b5a4c79f238d1126457df2e65b1d80ee54ba9d..a0bb85bda82fab513fa4b4584b4d2cced13c06f3 100644 (file)
@@ -86,6 +86,7 @@ st_scroll_view_fade_get_static_shader_source (ClutterShaderEffect *effect)
 
 static void
 st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect,
+                                  ClutterPaintNode       *node,
                                   ClutterPaintContext    *paint_context)
 {
   StScrollViewFade *self = ST_SCROLL_VIEW_FADE (effect);
@@ -154,7 +155,7 @@ st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect,
   clutter_shader_effect_set_uniform (shader, "fade_area_bottomright", CLUTTER_TYPE_SHADER_FLOAT, 2, fade_area_bottomright);
 
   parent = CLUTTER_OFFSCREEN_EFFECT_CLASS (st_scroll_view_fade_parent_class);
-  parent->paint_target (effect, paint_context);
+  parent->paint_target (effect, node, paint_context);
 }
 
 static void